#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include "video.h"
#include <QMainWindow>
#include <QApplication>
#include <QTreeView>
#include <QStandardItemModel>
#include <QStandardItem>
#include <QDebug>
#include <QDir>
#include <QFileInfoList>
#include <QPixmap>
#include <QStringList>
#include <QSplitter>
#include <QDockWidget>
#include <QTextEdit>
#include <QTreeWidget>
#include <QLabel>
#include <QGraphicsScene>
#include <QGraphicsPixmapItem>
#include <QVBoxLayout>
#include <QHBoxLayout>
#include <QDateTime>
#include <QFont>
#include <QToolBar>
#include <QAction>
namespace Ui {
class MainWindow;
}

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    explicit MainWindow(QWidget *parent = 0);
    void addImageItemsRecursively(QStandardItem *parentItem, const QString &path);
    void addVideoItemsRecursively(QStandardItem *parentItem, const QString &path);
//    void resizeEvent(QResizeEvent *event);
    QMainWindow mainWindow;
    ~MainWindow();

private:
    Ui::MainWindow *ui;

public slots:
    void slot_clickTree(QModelIndex index);
    void openImage();
    void openVideo();


public:
    QStandardItemModel *model;
    QTextEdit *tRight_Botton;
    QLabel *imageLabel, *test;
    QString rootPath_Image,rootPath_Video;
    QGraphicsScene scene;
    QTreeView *treeView;
    QSplitter *spRight;
    QWidget *imageWidget,*videoWidget;
    video *my_videoWidget;
    QFileDialog *Filedialog;
    QFont *font;
    QToolBar *toolBar;
};

#endif // MAINWINDOW_H
